package com.woyou.ui.activity.orderdetail;

import com.citaq.ideliver.R;
import com.woyou.bean.Info;
import com.woyou.bean.OrderDetail;
import com.woyou.ui.activity.HomeActivity_;
import com.woyou.ui.fragment.ShopsFragment_;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
/**
 * 未支付被取消
 * @author xuron
 *
 */
public class NoPayBeCancelViewCreater extends StateViewCreater implements OnClickListener{

	public NoPayBeCancelViewCreater(Context context, ViewControl uiControl, OrderDetail detail) {
		super(context, uiControl, detail);
	}

	// 实例化View[]中的元素和实现事件绑定等操作
	protected void createView() {
		// 实现事件绑定等操作
		mViewArr = new View[1];
		View view1 = View.inflate(mContext, R.layout.orderdetial_item_onebutton, null);
		TextView button1 = (TextView) view1.findViewById(R.id.button1);
		button1.setText("逛逛别家");
		button1.setOnClickListener(this);
		// .......
		mViewArr[0] = view1;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.button1:
			Info<Class> info = new Info<Class>(ShopsFragment_.class);
			openActivity(HomeActivity_.class, info);
			break;
		}
	}

}
